package com.neusoft.nepm.service;

import com.neusoft.common.domain.Grider;
import com.neusoft.common.domain.GriderTest;
import com.neusoft.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-nepg",url = "http://localhost:7000", configuration = FeignConfig.class)
public interface NepgServiceClient {
    @GetMapping("/service-nepg/grider/query-list")
    List<Grider> queryList(@RequestParam("id") int id,@RequestParam("cid") int cid);
    @GetMapping("/service-nepg/grider/count-mesg")
    int countMesg();
    @GetMapping("/service-nepg/grider/count-well")
    int countWell();
    @GetMapping("/service-nepg/grider/count-capital")
    int countCapital();
    @GetMapping("/service-nepg/grider/count-bigCity")
    int countBigCity();
    @GetMapping("/service-nepg/grider/find-test")
    GriderTest findTest(@RequestParam("id") int id);
    @GetMapping("/service-nepg/grider/find-grider")
    Grider findGrider(@RequestParam("code") String code);

}
